package com.stadium.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;


@Data
@ApiModel(value = "注册用户vo")
public class RegisterVo {
    @ApiModelProperty(value = "用户姓名")
    private String name;
    @ApiModelProperty(value = "密码", example = "0")
    private String password;

    @NotBlank(message = "身份证号不能为空")
    @ApiModelProperty(value = "身份证号",required = true)
    private String idNumber;
    @NotBlank(message = "手机号码不能为空")
    @ApiModelProperty(value = "手机号码", example = "0", required = true)
    private String phoneNum;

    @Length(min = 0, max = 500)
    @ApiModelProperty(value = "头像")
    private String headPortrait;
}
